<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Main.Master" Inherits="System.Web.Mvc.ViewPage<Profile>" %>
<%@ Import Namespace="raya.Library.Extensions"%>
<%@ Import Namespace="raya.Models.people" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%
        if (ViewData.Model.person == null)
        {%>
    <p>
        User does not exist
    </p>
    <% }
    else
    {%>
    <div class="sideBar_menu">
        <% Html.RenderControl(rayaControls.profile_info, ViewData.Model); %>
    </div>
    <div class="mainContent">
        <div id="profile_content">
            <ul>
                <li><a href="#info">Info</a></li>
                <li><a href="#photos">Photos</a></li>
            </ul>
            <div id="info">
                <% if (Request.RawUrl.Contains("/profile/edit"))
                   {
                       Html.RenderControl(rayaControls.profile_edit, ViewData.Model);
                   }
                   else
                   {
                       Html.RenderControl(rayaControls.profile_edit_no, ViewData.Model);
                   }
                %>
            </div>
            <div id="photos">
            <%
                Html.RenderControl(rayaControls.c_photos, ViewData.Model);%>
            </div>
        </div>
    </div>
    <div class="sideBar">
    </div>
    <script type="text/javascript">
        $(document).ready(function() {
            var $tabs = $('#profile_content').tabs();
            if (querySt('tab') != undefined) {
                $tabs.tabs('select', '#' + querySt('tab'));
            }
        });
    </script>

    <%  } %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
